{* Smarty *}


	<img src="img/welcome.png" style="padding:6;">
	<br>
	<div class="text_big"  style="position:relative; padding:0 0 0 6; margin:0 0 -3 0;">Your Account</div>
	<img src="img/line_big.gif" style="padding:0 0 0 6;" >

    <table align="center" id="content_text">
        <tr>                           
            <td colspan="2" align="center">
              <span style="background-color: #4094D7; color: #ffffff; padding: 6px; font-family: verdana; font-size: 12px; text-align: left; font-weight:lighter;">Return center :: <b>{$acount.client_name}</b></span>
            </td>
        </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr valign="top">
	<td style="padding:0 0 0 5;">
        {include file="../include/facePlugins/ccplugin/tpl/acc_left_menu.tpl.php"}
	</td>
    
    <td width="100%" align="center" id="content_text">
    
        <table id="cart" width="100%" cellpadding="1" border="0" class="list">

        <tr class="total">
            <th>Order</th>
            <th>Info Product</th>
        </tr>
{if empty($info_products_oders) || !count($info_products_oders)}
        <tr class="light">
            <td>&nbsp;</td>
            <td colspan="2" height="40">
                <b>No items collected in the return center yet</b>
            </td>
        </tr>
{else}

    <form name="return_products" method="post" action="{geturl plugin='ccontrl' method='null' params='page=return_center'}">
    
    <input type="hidden" name="event" value="SubmitReturnProductCenter" />
    
    {foreach  from = $info_products_oders  item = prod  key = order}

        <tr class="{cycle values='dark,light' advance=true}">
            <td nowrap>
                <a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order}"}">{$prod[0].pubdate|date_format:"%m/%d/%Y %I:%M %p"}</a>
            </td>
            <td>
                <table id="cart" width="100%" cellpadding="1" border="0" class="list">
                <tr class="total">
                    <th>#</th>
                    <th width="40%" nowrap>Product Name</th>
                    <th>Qty</th>
                    <th>Reason</th>
                </tr>
            {foreach  name = "cart"  from = $prod  item = data_prod}
                <tr class="{cycle values='dark,light' advance=true}">
                    <td align="center">{$smarty.foreach.cart.iteration}</td>
                    <td><a href="{geturl plugin='catalogpage' method='null' params='page=view_details&pid='}{$data_prod.catalog_id}"}">{$data_prod.title}</a></td>
                    <td>
                        <select name="qty[{$order}-{$data_prod.catalog_id}]">
                            <option selected value="0">0</option>
                            {section  name = "qty"  loop = $data_prod.qty}
                            <option value="{$smarty.section.qty.iteration}">{$smarty.section.qty.iteration}</option>
                            {/section}
                        </select>
                    </td>
                    <td><textarea name="reason[{$order}-{$data_prod.catalog_id}]" cols="22" rows="2"></textarea></td>
                </tr>
            {/foreach}            
                </table>
            </td>
        </tr>

    {/foreach}

        <tr>
            <td colspan="4" align="right">
                <input type="submit" value=" Submit " class="button" />&nbsp;&nbsp;
            </td>
        </tr>
    
    </form>
    
{/if}
        </table>

    </td>
    
    </tr>
    </table>

